package com.eduction.service.impl;

import com.eduction.modules.system.dao.ApplyFileRepository;
import com.eduction.modules.system.dao.ArgumentationMaterialRepository;
import com.eduction.modules.system.entity.ApplyFile;
import com.eduction.modules.system.entity.ArgumentationMaterial;
import com.eduction.service.ApplyFileService;
import com.eduction.service.ArgumentationMaterialService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;

@Service
public class ArgumentationMaterialServiceImpl implements ArgumentationMaterialService {

	@Autowired
	private ArgumentationMaterialRepository argumentationMaterialRepository;


	@Override
	public void save(ArgumentationMaterial argumentationMaterial) {
		argumentationMaterialRepository.save(argumentationMaterial);
	}

	@Override
	public ArgumentationMaterial findBySchoolId(String schoolId) throws SQLException {
		return argumentationMaterialRepository.findBySchoolId(schoolId);
	}
}
